package hcn.protocol.base;

import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by jinxin on 2016/10/24.
 */
@XmlRootElement(name = "bed")
public class BedQueryBean implements Serializable {
    private static final long serialVersionUID = -7995828412534739330L;
    private Integer totalBeds;
    private Integer emptyBeds;
    private List<BedQueryDeptBean> deptList;


    @XmlElement
    public Integer getTotalBeds() {
        return totalBeds;
    }

    public void setTotalBeds(Integer totalBeds) {
        this.totalBeds = totalBeds;
    }

    @XmlElement
    public Integer getEmptyBeds() {
        return emptyBeds;
    }

    public void setEmptyBeds(Integer emptyBeds) {
        this.emptyBeds = emptyBeds;
    }

    @XmlElementWrapper(name = "deptList")
    @XmlElement(name = "dept")
    public List<BedQueryDeptBean> getDeptList() {
        return deptList;
    }

    public void setDeptList(List<BedQueryDeptBean> deptList) {
        this.deptList = deptList;
    }
}
